package com.jxj.controller;

import java.io.IOException;
import java.util.List;

import javax.annotation.Resource;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.jxj.service.ReciveServiceImpl;

@Controller
public class ReciveController {
	@Resource
	private ReciveServiceImpl serviceImpl;
	@RequestMapping("personalFind")
	public String personalFind(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException{
		
		HttpSession session=request.getSession();		
		int id = (int) session.getAttribute("id");
		List list=this.serviceImpl.findDemand(id);
		List listr=this.serviceImpl.reciveDemand(id);
		request.getRequestDispatcher("peronalFind.jsp").forward(request, response);
		return null;
		
	}
}
